<?php foreach ($data as $k => $value) { ?>
  <?php if ($k % 2 == 0) { ?>
    <div class="colctrl"></div>
    <div class="g-row g-layout-responsive-66-33">
      <div class="block_8 g-col g-col-1 column column-first">
        <?php if (!empty($value[1])) { ?>
          <div class="block">
            <div class="mod mod-block skin-block-right skin-block-width50 ga-block" title="<?= $value[1]['title'] ?>"
                 data-connectors="block">
              <a href="<?= $value[1]['url'] ?>" class="b-secondary">

                <div class="wrapper title-wrapper responsive-content">
                  <div class="content rich">
                    <h3><?= $value[1]['title'] ?></h3>
                  </div>
                </div>

                <div class="background">
                  <div class="responsive-content">
                    <img class="js-default show-center"
                         src="<?= $value[1]['uri'] ?>" alt=""
                         usemap="">
                  </div>
                </div>

                <div class="wrapper description-wrapper">
                  <div class="content rich">
                    <h3 class="desktop-only"><?= $value[1]['title'] ?></h3>
                    <?= $value[1]['description'] ?>
                    <button type="button" class="b inverted desktop-hidden">查看更多<i
                        class="icon-arrow-right"></i></button>
                  </div>
                </div>
              </a>
            </div>
          </div>
          <?php
        } ?>
        <?php if (!empty($value[2])) { ?>
          <div class="block">
            <div class="mod mod-block skin-block-left skin-block-width50 ga-block" title="<?= $value[2]['title'] ?>"
                 data-connectors="block">
              <a href="<?= $value[2]['url'] ?>" class="b-secondary">
                <div class="wrapper title-wrapper responsive-content">
                  <div class="content rich">
                    <h3><?= $value[2]['title'] ?></h3>
                  </div>
                </div>

                <div class="background">
                  <div class="responsive-content">
                    <img class="js-default show-center"
                         src="<?= $value[2]['uri'] ?>" alt=""
                         usemap="">
                  </div>

                </div>

                <div class="wrapper description-wrapper">
                  <div class="content rich">
                    <h3 class="desktop-only"><?= $value[2]['title'] ?></h3>
                    <?= $value[2]['description'] ?>
                    <button type="button" class="b inverted desktop-hidden">查看更多<i
                        class="icon-arrow-right"></i></button>
                  </div>
                </div>
              </a>
            </div>
          </div>
          <?php
        } ?>
      </div>
      <div class="block_4 g-col g-col-2 b-aside-right column">
        <?php if (!empty($value[0])) { ?>
          <div class="block">
            <div class="mod mod-block rectangle skin-block-bottom ga-block" title="<?= $value[0]['title'] ?>"
                 data-connectors="block">
              <a href="<?= $value[0]['url'] ?>" class="b-secondary">

                <div class="wrapper title-wrapper responsive-content">
                  <div class="content rich">
                    <h3><?= $value[0]['title'] ?></h3>
                  </div>
                </div>

                <div class="background">
                  <div class="responsive-content">
                    <img class="js-default show-center"
                         src="<?= $value[0]['uri'] ?>" alt=""
                         usemap="">
                  </div>

                </div>

                <div class="wrapper description-wrapper">
                  <div class="content rich">
                    <h3 class="desktop-only"><?= $value[0]['title'] ?></h3>
                    <?= $value[0]['description'] ?>
                    <button type="button" class="b inverted desktop-hidden">查看更多<i
                        class="icon-arrow-right"></i></button>
                  </div>
                </div>
              </a>
            </div>
          </div>
          <?php
        } ?>
      </div>
    </div>
  <?php }
  else { ?>
    <div class="colctrl"></div>
    <div class="g-row g-layout-responsive-33-66">
      <div class="block_4 g-col g-col-1 column column-first">
        <?php if (!empty($value[0])) { ?>
          <div class="block">
            <div class="mod mod-block rectangle skin-block-bottom ga-block" title="<?= $value[0]['title'] ?>"
                 data-connectors="block">
              <a href="<?= $value[0]['url'] ?>" class="b-secondary">

                <div class="wrapper title-wrapper responsive-content">
                  <div class="content rich">
                    <h3><?= $value[0]['title'] ?></h3>
                  </div>
                </div>

                <div class="background">
                  <div class="responsive-content">
                    <img class="js-default show-center"
                         src="<?= $value[0]['uri'] ?>" alt=""
                         usemap="">
                  </div>

                </div>

                <div class="wrapper description-wrapper">
                  <div class="content rich">
                    <h3 class="desktop-only"><?= $value[0]['title'] ?></h3>
                    <?= $value[0]['description'] ?>
                    <button type="button" class="b inverted desktop-hidden">查看更多<i
                        class="icon-arrow-right"></i></button>
                  </div>
                </div>
              </a>
            </div>
          </div>
          <?php
        } ?>
      </div>
      <div class="block_8 g-col g-col-2 column">
        <?php if (!empty($value[1])) { ?>
          <div class="block">
            <div class="mod mod-block skin-block-left skin-block-width50 ga-block" title="<?= $value[1]['title'] ?>"
                 data-connectors="block">
              <a href="<?= $value[1]['url'] ?>" class="b-secondary">

                <div class="wrapper title-wrapper responsive-content">
                  <div class="content rich">
                    <h3><?= $value[1]['title'] ?></h3>
                  </div>
                </div>

                <div class="background">
                  <div class="responsive-content">
                    <img class="js-default show-center"
                         src="<?= $value[1]['uri'] ?>" alt=""
                         usemap="">
                  </div>
                </div>

                <div class="wrapper description-wrapper">
                  <div class="content rich">
                    <h3 class="desktop-only"><?= $value[1]['title'] ?></h3>
                    <?= $value[1]['description'] ?>
                    <button type="button" class="b inverted desktop-hidden">查看更多<i
                        class="icon-arrow-right"></i></button>
                  </div>
                </div>
              </a>
            </div>
          </div>
          <?php
        } ?>
        <?php if (!empty($value[2])) { ?>
          <div class="block">
            <div class="mod mod-block skin-block-left skin-block-width50 ga-block" title="<?= $value[2]['title'] ?>"
                 data-connectors="block">
              <a href="<?= $value[2]['url'] ?>" class="b-secondary">
                <div class="wrapper title-wrapper responsive-content">
                  <div class="content rich">
                    <h3><?= $value[2]['title'] ?></h3>
                  </div>
                </div>

                <div class="background">
                  <div class="responsive-content">
                    <img class="js-default show-center"
                         src="<?= $value[2]['uri'] ?>" alt=""
                         usemap="">
                  </div>

                </div>

                <div class="wrapper description-wrapper">
                  <div class="content rich">
                    <h3 class="desktop-only"><?= $value[2]['title'] ?></h3>
                    <?= $value[2]['description'] ?>
                    <button type="button" class="b inverted desktop-hidden">查看更多<i
                        class="icon-arrow-right"></i></button>
                  </div>
                </div>
              </a>
            </div>
          </div>
          <?php
        } ?>
      </div>
    </div>
  <?php } ?>
<?php } ?>